package com.example.sticksrpi;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		Button up = (Button) findViewById(R.id.upButton);
		up.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "Clicked on Up Button", Toast.LENGTH_SHORT).show();     
			}
		});

		Button down = (Button) findViewById(R.id.downButton);
		down.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "Clicked on Down Button", Toast.LENGTH_SHORT).show();      
			}
		});

		Button left = (Button) findViewById(R.id.leftButton);
		left.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "Clicked on Left Button", Toast.LENGTH_SHORT).show();     
			}
		});

		Button right = (Button) findViewById(R.id.rightButton);
		right.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "Clicked on Right Button", Toast.LENGTH_SHORT).show();    
			}
		});
		
		Button actA = (Button) findViewById(R.id.actA);
		actA.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "Clicked on Action 1 Button", Toast.LENGTH_SHORT).show();    
			}
		});
		Button actB = (Button) findViewById(R.id.actB);
		actB.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "Clicked on Action 2 Button", Toast.LENGTH_SHORT).show();    
			}
		});
		Button actC = (Button) findViewById(R.id.actC);
		actC.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "Clicked on Action 3 Button", Toast.LENGTH_SHORT).show();    
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
}
